package javaBase.chapter01;
import java.util.Scanner;

public class inputOutput {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入一个字符：");
        char inputChar = scanner.next().charAt(0);
        System.out.println("你输入的字符是：" + inputChar);

        System.out.println("请输入一个字符串：");
        String inputString = scanner.nextLine();
        System.out.println("你输入的字符串是：" + inputString);

        System.out.println("请输入一个整数：");
        int inputInt = scanner.nextInt();
        System.out.println("你输入的整数是：" + inputInt);

        System.out.println("请输入一个浮点数：");
        double inputDouble = scanner.nextDouble();
        System.out.println("你输入的浮点数是：" + inputDouble);
    }

}
